<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="__ADMIN__/css/font.css">
<link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
<script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
<script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
<link rel="stylesheet" href="/static/admin/css/font.css">
<link rel="stylesheet" href="/static/admin/css/font-awesome.min.css">
<style>
.layui-form-item .layui-form-label{
    width: 120px;
}
.layui-form-item .layui-textarea{
    width: 190px;
}
#phone-one-div {display: none}
.layui-form-select {z-index: 99999 !important}
</style>
</head>

<body>
<div class="x-body">
<form class="layui-form">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>活动基本信息</legend>
</fieldset> 
 
<table class="layui-table" lay-size="sm">
  <colgroup>
    <col width="200">
    <col>
  </colgroup>
  <tbody>
    <tr>
      <td>直播平台id</td>
      <td>{$data.live_id}</td>
    </tr>
    <tr>
      <td>活动名称</td>
      <td>{$data.activity_name}</td>
    </tr>
    <tr>
      <td>活动日期</td>
      <td>{:date('Y-m-d',$data.activity_start_time)} - {:date('Y-m-d',$data.activity_end_time)}</td>
    </tr>
    <tr>
      <td>活动时间</td>
      <td>{:date('H:i:s',$data.activity_start_time)} - {:date('H:i:s',$data.activity_end_time)}</td>
    </tr>
    <tr>
      <td>活动地区</td>
      <td>{$data.province}{$data.city}{$data.county}</td>
    </tr>
    <tr>
      <td>活动场馆</td>
      <td>{$data.activity_venues}</td>
    </tr>
    <tr>
      <td>活动地址</td>
      <td>{$data.activity_address}</td>
    </tr>
    <tr>
      <td>设备需求</td>
      <td>{$data.activity_need_device}</td>
    </tr>
    <tr>
      <td>备注</td>
      <td>{$data.note}</td>
    </tr>
  </tbody>
</table>

{if condition="$data.recommend_liveer_name || $data.liveer_name"}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>外请直播联系人信息</legend>
</fieldset> 
 
<table class="layui-table" lay-size="sm">
  <colgroup>
    <col width="200">
    <col>
  </colgroup>
  <tbody>
    <tr>
      <td>推荐外请直播联系人</td>
      <!--<td>{$data.recommend_liveer_name}</td>-->
      <td>
          <input type="text" value="{$data.recommend_liveer_name}" id="recommend_liveer_name" name="recommend_liveer_name" autocomplete="off" class="layui-input">
      </td>
    </tr>
    <tr>
      <td>推荐外请直播联系电话</td>
      <!--<td>{$data.recommend_liveer_phone}</td>-->
      <td>
          <input type="text" value="{$data.recommend_liveer_phone}" id="recommend_liveer_phone" name="recommend_liveer_phone" autocomplete="off" class="layui-input">
      </td>
    </tr>
    <tr>
      <td>推荐价格</td>
      <td>
          <input type="text" value="{$data.recommend_liveer_price}" id="recommend_liveer_price" name="recommend_liveer_price" autocomplete="off" class="layui-input">
      </td>
    </tr>
    <tr>
      <td>能否开票</td>
      <td>{$data.recommend_liveer_bill==1?'能':'不能'}</td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
      <td>最终选择外请直播联系人</td>
      <td>{$data.liveer_name}</td>
    </tr>
    <tr>
      <td>外请直播联系电话</td>
      <td>{$data.liveer_phone}</td>
    </tr>
    <tr>
      <td>价格</td>
      <td>
          <!--{$data.liveer_price}-->
          <input type="text" value="{$data.liveer_price}" id="liveer_price" name="liveer_price" autocomplete="off" class="layui-input">
      </td>
    </tr>
    <tr>
      <td>能否开票</td>
      <td>{$data.liveer_bill==1?'能':'不能'}</td>
    </tr>
  </tbody>
</table>
{/if}

{if condition="$data.rate_1 || $data.rate_2 || $data.rate_3"}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>直播评价</legend>
</fieldset> 
 
<table class="layui-table" lay-size="sm">
  <colgroup>
    <col width="200">
    <col>
  </colgroup>
  <tbody>
    <tr>
      <td>评价得分</td>
      <td><?php echo round(($data['rate_1']+$data['rate_2']+$data['rate_3']) / 3); ?></td>
    </tr>
    <tr>
      <td>声音是否清晰</td>
      <td>{$data.rate_1}</td>
    </tr>
    <tr>
      <td>直播画面流畅度</td>
      <td>{$data.rate_2}</td>
    </tr>
    <tr>
      <td>服务态度</td>
      <td>{$data.rate_3}</td>
    </tr>
  </tbody>
</table>
{/if}

{if condition="$data.transferor"}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>结算详情</legend>
</fieldset> 
 
<table class="layui-table" lay-size="sm">
  <colgroup>
    <col width="200">
    <col>
  </colgroup>
  <tbody>
    <tr>
      <td>发票图</td>
      <td><a href="{$data.bill_image}" target="_blank"><img src="{$data.bill_image}" width="250"></a></td>
    </tr>
    <tr>
      <td>转账凭证</td>
      <td><a href="{$data.voucher_image}" target="_blank"><img src="{$data.voucher_image}" width="250"></a></td>
    </tr>
    <tr>
      <td>结算方式</td>
      <td>{$data.jie_method}</td>
    </tr>
    <tr>
      <td>转账人</td>
      <td>{$data.transferor}</td>
    </tr>
    <tr>
      <td>实际结算金额</td>
      <td>{$data.jie_price}</td>
    </tr>
    <tr>
      <td>备注</td>
      <td>{$data.jie_remark}</td>
    </tr>
  </tbody>
  
</table>
{/if}

</form>
</div>
<script>

    
    
    layui.use(['form','layer','laydate','upload','layarea','rate'], function(){
          $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer
          ,laydate = layui.laydate
          ,upload = layui.upload
          ,layarea = layui.layarea
          ,rate = layui.rate;

        $('#recommend_liveer_price').blur(function(){
            $.get('/admin.php/Data_Table/editPrice?id={$data.id}&recommend_liveer_price='+$(this).val(),function(data){
                if(data.code == 1)
                {
                    $('#recommend_liveer_price').val(data.data.recommend_liveer_price);
                }
            },'json')
        })

        $('#liveer_price').blur(function(){
            $.get('/admin.php/Data_Table/editLivePrice?id={$data.id}&liveer_price='+$(this).val(),function(data){
                if(data.code == 1)
                {
                    $('#liveer_price').val(data.data.liveer_price);
                }
            },'json')
        })

        $('#recommend_liveer_name').blur(function(){
            $.get('/admin.php/Data_Table/editLiveName?id={$data.id}&recommend_liveer_name='+$(this).val(),function(data){
                if(data.code == 1)
                {
                    $('#recommend_liveer_name').val(data.data.recommend_liveer_name);
                }
            },'json')
        })

        $('#recommend_liveer_phone').blur(function(){
            $.get('/admin.php/Data_Table/editLivePhone?id={$data.id}&recommend_liveer_phone='+$(this).val(),function(data){
                if(data.code == 1)
                {
                    $('#recommend_liveer_phone').val(data.data.recommend_liveer_phone);
                }
            },'json')
        })

    });
    </script>
  </body>

</html>